import 'dart:convert';

import 'package:learning/generated/json/base/json_field.dart';
import 'package:learning/generated/json/learning_type_entity.g.dart';

export 'package:learning/generated/json/learning_type_entity.g.dart';

@JsonSerializable()
class LearningTypeEntity {
	late String icon;
	late String name;
	late int id;
	late int sort;

	LearningTypeEntity();

	factory LearningTypeEntity.fromJson(Map<String, dynamic> json) => $LearningTypeEntityFromJson(json);

	Map<String, dynamic> toJson() => $LearningTypeEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}